/*
 * Copyright (C) hushenglan
 */

#include "mynet.h"

namespace mynet
{

/*
 * 构造函数
 */
CEpollEvent::CEpollEvent(struct epoll_event *event, void *data) :
    CEvent(data)
{
    _ev = event;
}

/*
 * 构造函数
 */
CEpollEvent::CEpollEvent() :
    CEvent(NULL)
{
    _ev = NULL;
}

/*
 * 析构函数
 */
CEpollEvent::~CEpollEvent()
{
}

/*
 * 设置event
 */
void CEpollEvent::setEvent(struct epoll_event *event)
{
    _ev = event;
}

}

